char *text= "ING4 SE ECE-2009";
unsigned int mesure,toto;
char recept;
void main() {
  INTCON = 0;
  Usart_Init(2400);
  Lcd8_Init(&PORTB, &PORTD);
  LCD8_Cmd(LCD_CURSOR_OFF);
  LCD8_Cmd(LCD_CLEAR);
  LCD8_Out(1,3,text);
 ADCON1     = 0x82;
 TRISA      = 0xFF;     // Port a is input
while (1) {
    mesure  = ADC_read(2);
    mesure = mesure * 4,88;
    IntToStr(mesure, text);
    LCD8_Out(2,1,text);
        if (Usart_Data_Ready())
        {
        recept = Usart_Read();
        Lcd8_Chr(1, 1,recept );
        toto = 0;
        text[6] = 0x0A;text[7] = 0x0D; // code pour espace (?) et retour chariot
        while ( text[toto] != 0x0D)
        {toto =toto+1;Usart_Write(text [toto]);}
        }
        }
        }